<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false" %>

<aside class="main-sidebar">
	<!-- sidebar: style can be found in sidebar.less -->
	<section class="sidebar">
		<!-- Sidebar user panel -->
		<div class="user-panel">
			<div class="pull-left image">
				<img src="${pageContext.request.contextPath}/img/user2-160x160.jpg"
					class="img-circle" alt="User Image">
			</div>
			<div class="pull-left info">
				<p>${sessionScope.get("user").username}</p>
				<a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
			</div>
		</div>

		<!-- sidebar menu: : style can be found in sidebar.less -->
		<ul class="sidebar-menu">
			<li class="header">菜单</li>
			<li id="admin-index">
				<a href="${pageContext.request.contextPath}/system/user/toMain"><i
					class="fa fa-dashboard"></i> <span>首页</span></a>></li>

			<c:if test="${sessionScope.authorStr.contains('system')}">
				<li class="treeview"><a href="#"> <i class="fa fa-cogs"></i>
					<span>系统管理</span> <span class="pull-right-container"> <i
							class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
					<ul class="treeview-menu">
						<c:if test="${sessionScope.authorStr.contains('user')}">
						<li id="system-setting-user"><a
								href="${pageContext.request.contextPath}/system/user/list"> <i
								class="fa fa-circle-o"></i> 用户管理
						</a></li></c:if>
						<c:if test="${sessionScope.authorStr.contains('role')}">
						<li id="system-setting-role"><a
								href="${pageContext.request.contextPath}/system/role/list"> <i
								class="fa fa-circle-o"></i> 角色管理
						</a></li></c:if>
						<c:if test="${sessionScope.authorStr.contains('permission')}">
						<li id="system-setting-permission"><a
								href="${pageContext.request.contextPath}/system/permission/list">
							<i class="fa fa-circle-o"></i> 资源权限管理
						</a></li></c:if>
						<c:if test="${sessionScope.authorStr.contains('syslog')}">
						<li id="system-setting-syslog"><a
								href="${pageContext.request.contextPath}/system/syslog/list"> <i
								class="fa fa-circle-o"></i> 访问日志
						</a></li></c:if>
					</ul></li>
			</c:if>

			<c:if test="${sessionScope.authorStr.contains('store')}">
			<li class="treeview"><a href="#"> <i class="fa fa-cube"></i>
					<span>基础数据</span> <span class="pull-right-container"> <i
						class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
				<ul class="treeview-menu">

					<c:if test="${sessionScope.authorStr.contains('product')}">
					<li id="system-setting-product"><a
						href="${pageContext.request.contextPath}/store/product/list">
							<i class="fa fa-circle-o"></i> 产品管理
					</a></li></c:if>
					<c:if test="${sessionScope.authorStr.contains('orders')}">
					<li id="system-setting-orders"><a
						href="${pageContext.request.contextPath}/store/orders/list"> <i
							class="fa fa-circle-o"></i> 订单管理
					</a></li></c:if>

				</ul></li></c:if>

			<li class="treeview"><a href="${pageContext.request.contextPath}/store/chart/broken.jsp"> <i class="fa fa-cube"></i>
				<span>统计图表</span> <span class="pull-right-container"> <i
						class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
				<ul class="treeview-menu">

					<li id="system-setting-count"><a
							href="${pageContext.request.contextPath}/store/chart/getReportMember">
						<i class="fa fa-circle-o"></i> 折线图统计会员数量
					</a></li>
					<li id="system-setting-gender"><a
							href="${pageContext.request.contextPath}/store/piechart/getpie"> <i
							class="fa fa-circle-o"></i> 饼状图统计男女比例
					</a></li>
					<li id="system-setting-age"><a
							href="${pageContext.request.contextPath}/store/pieage/getage"> <i
							class="fa fa-circle-o"></i> 不同年龄段会员比例
					</a></li>

				</ul></li>

		</ul>
	</section>
	<!-- /.sidebar -->
</aside>